from base.mybase import Tools

class query_model(Tools):
    # 定义路径
    path = '/task/info'

    # 发送查询任务接口
    def query_action(self, status, hd):
        query_data = {
            'status': 0
        }
        query = self.huihua.get(url=self.hosturl+self.path, params=query_data, headers=hd)
        return query.json()


# from todo_api_project.api.login_api import login_model
# import requests
# s = requests.session()
# login = login_model(huihua=s)
# msg = login.login_action(usr='rrer123', pwd='rr1234', check='1234')
# print(msg)
# getuserId = msg['userId']
# getuserToken = msg['userToken']
# hd = {"userId": getuserId, "userToken": getuserToken}
#
# query = query_model(huihua=s)
# msg = query.query_action(status=0, hd=hd)
# print(msg)
